home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 25
/
Aminet 25 (1998)(GTI - Schatztruhe)[!][Jun 1998].iso
/
Aminet
/
dev
/
amos
/
AMOS0398.lzh
/
AMOSLIST
/
000166_amos-request@svcs1.digex.net_Tue Mar 17 19:54:57 1998.msg
< prev
next >
Wrap
Text File
|
1998-04-01
|
2KB
|
54 lines
>From amos-request@svcs1.digex.net Tue Mar 17 19:54:57 1998
Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224])
by pony-1.mail.digex.net (8.8.8/8.8.8) with ESMTP id TAA10403
for <mcox@access.digex.net>; Tue, 17 Mar 1998 19:54:57 -0500 (EST)
Received: (from daemon@localhost)
by svcs1.digex.net (8.8.5/8.8.5) id RAA18808
for amos-out; Tue, 17 Mar 1998 17:35:47 -0500 (EST)
Received: from pony-1.mail.digex.net (pony-1.mail.digex.net [204.91.241.5])
by svcs1.digex.net (8.8.5/8.8.5) with ESMTP id RAA18805
for <amos-list@svcs1.digex.net>; Tue, 17 Mar 1998 17:35:46 -0500 (EST)
Received: from star.flashnet.it (star.flashnet.it [194.247.160.2])
by pony-1.mail.digex.net (8.8.8/8.8.8) with ESMTP id RAA02187
for <amos-list@access.digex.net>; Tue, 17 Mar 1998 17:35:40 -0500 (EST)
Received: from ip036.pool-17.flashnet.it (Berionne@ip036.pool-17.flashnet.it [195.191.2.164])
by star.flashnet.it (8.8.7/8.8.6) with SMTP id XAA17120
for <amos-list@access.digex.net>; Tue, 17 Mar 1998 23:35:33 +0100
Date: 17 Mar 98 19:36:18 +0100
From: "Michele Berionne" <berionne@flashnet.it>
Subject: Re: Re[3]: Sorting problems
To: "Nathan Reynolds" <amos-list@access.digex.net>
In-Reply-To: <199803161704.RAA08368@hermes.clara.net>
Message-ID: <687.380T947T11764580@flashnet.it>
MIME-Version: 1.0
Content-type: text/plain; charset=iso-8859-1
Content-transfer-encoding: 8bit
X-Mailer: THOR 2.5a (Amiga;TCP/IP)
Status: O
X-Status:
Hi there!
> For FOO=1 To 128
> For FOO2=1 to 128
> If NAME$(FOO)<NAME$(FOO2) And FOO<>FOO2
> Swap NAME$(FOO),NAME$(FOO2)
> Swap BANKNUM(FOO),BANKNUM(FOO2)
> EndIf
> Next
> Next
Don't use something like this: it repeats 128^2 times the same operations,
even if the data are already sorted.
You can better think about a loop with a flag: if the datas are sorted,
exit from the loop.
Bye
berionne@flashnet.it >>Flagger<<
+---------------------------------------------------------------+
|���BASIC programmers never die, they GOSUB and don't RETURN. |
+---------------------------------------------------------------+